package com.etonedu.meals.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class DeviceDetaiBean implements Parcelable {
    /**
     * attenRuleDto :
     * deptName : 七年级（1）班
     * deviceCode : A852DB9D74844E830160687545A02F10
     * deviceName : 测试初中新班牌
     * schoolName : 新班牌实验初中
     * templateCode : ECBC1001
     */

    private AttenRuleBean attenRuleDto;
    private String deptName;
    private String deviceCode;
    private String deviceName;
    private String schoolName;
    private String templateCode;
    private String attenMode; // 考勤模式：0 无、3 进出校考勤、4 宿舍考勤、5 课堂考勤
    private String roomName;
    private int isAccurate;

    public AttenRuleBean getAttenRuleDto() {
        return attenRuleDto;
    }

    public void setAttenRuleDto(AttenRuleBean attenRuleDto) {
        this.attenRuleDto = attenRuleDto;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }

    public String getAttenMode() {
        return attenMode;
    }

    public void setAttenMode(String attenMode) {
        this.attenMode = attenMode;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public int getIsAccurate() {
        return isAccurate;
    }

    public void setIsAccurate(int isAccurate) {
        this.isAccurate = isAccurate;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.attenRuleDto, flags);
        dest.writeString(this.deptName);
        dest.writeString(this.deviceCode);
        dest.writeString(this.deviceName);
        dest.writeString(this.schoolName);
        dest.writeString(this.templateCode);
        dest.writeString(this.attenMode);
        dest.writeString(this.roomName);
        dest.writeInt(this.isAccurate);
    }

    public DeviceDetaiBean() {
    }

    protected DeviceDetaiBean(Parcel in) {
        this.attenRuleDto = in.readParcelable(AttenRuleBean.class.getClassLoader());
        this.deptName = in.readString();
        this.deviceCode = in.readString();
        this.deviceName = in.readString();
        this.schoolName = in.readString();
        this.templateCode = in.readString();
        this.attenMode = in.readString();
        this.roomName = in.readString();
        this.isAccurate = in.readInt();
    }

    public static final Creator<DeviceDetaiBean> CREATOR = new Creator<DeviceDetaiBean>() {
        @Override
        public DeviceDetaiBean createFromParcel(Parcel source) {
            return new DeviceDetaiBean(source);
        }

        @Override
        public DeviceDetaiBean[] newArray(int size) {
            return new DeviceDetaiBean[size];
        }
    };
}
